const DICOM_TAG_ATTR = {
  KVP: 'KVP',
  Manufacturer: 'Manufacturer',
  InstitutionName: 'InstitutionName',
  StudyID: 'StudyID',
  XRayTubeCurrent: 'XRayTubeCurrent',
  WindowCenter: 'WindowCenter',
  WindowWidth: 'WindowWidth',
  SliceThickness: 'SliceThickness',
  PatientAge: 'PatientAge',
  PatientName: 'PatientName',
  PatientID: 'PatientID',
  PatientSex: 'PatientSex'
}

const FOUR_CORNER_SHOW_NAME = {
  INDEX: 'Im',
  KV: DICOM_TAG_ATTR.KVP,
  MA: DICOM_TAG_ATTR.XRayTubeCurrent,
  WW: DICOM_TAG_ATTR.WindowWidth,
  WL: DICOM_TAG_ATTR.WindowCenter,
  CT: 'Value',
  SliceThickness: DICOM_TAG_ATTR.SliceThickness,
  X: 'X',
  Y: 'Y',
  TOTAL: 'Total',
  View_type: 'ViewType',
  Manufacturer: DICOM_TAG_ATTR.Manufacturer,
  Position: 'Position',
  InstitutionName: DICOM_TAG_ATTR.InstitutionName,
  PatientAge: DICOM_TAG_ATTR.PatientAge,
  PatientName: DICOM_TAG_ATTR.PatientName,
  PatientID: DICOM_TAG_ATTR.PatientID,
  PatientSex: DICOM_TAG_ATTR.PatientSex
}

const Map_Show_Name = {
  [FOUR_CORNER_SHOW_NAME.INDEX]: 'Im',
  [FOUR_CORNER_SHOW_NAME.KV]: 'kV',
  [FOUR_CORNER_SHOW_NAME.MA]: 'mA',
  [FOUR_CORNER_SHOW_NAME.WW]: 'W',
  [FOUR_CORNER_SHOW_NAME.WL]: 'L',
  [FOUR_CORNER_SHOW_NAME.CT]: 'Value',
  [FOUR_CORNER_SHOW_NAME.SliceThickness]: 'SliceThickness',
  [FOUR_CORNER_SHOW_NAME.X]: 'X',
  [FOUR_CORNER_SHOW_NAME.Y]: 'Y',
  [FOUR_CORNER_SHOW_NAME.TOTAL]: 'Total',
  [FOUR_CORNER_SHOW_NAME.View_type]: 'ViewType',
  [FOUR_CORNER_SHOW_NAME.Manufacturer]: 'Manufacturer',
  [FOUR_CORNER_SHOW_NAME.Position]: 'Position',
  [FOUR_CORNER_SHOW_NAME.InstitutionName]: 'InstitutionName',
  [FOUR_CORNER_SHOW_NAME.PatientAge]: 'PatientAge',
  [FOUR_CORNER_SHOW_NAME.PatientName]: 'PatientName',
  [FOUR_CORNER_SHOW_NAME.PatientID]: 'PatientID',
  [FOUR_CORNER_SHOW_NAME.PatientSex]: 'PatientSex'
}

// const TAG_MAP_SHOW_NAME = {
//     [DICOM_TAG_ATTR.KVP]: FOUR_CORNER_SHOW_NAME.KV,
//     [DICOM_TAG_ATTR.Manufacturer]: FOUR_CORNER_SHOW_NAME.Manufacturer,
//     [DICOM_TAG_ATTR.InstitutionName]: FOUR_CORNER_SHOW_NAME.InstitutionName,
//     [DICOM_TAG_ATTR.XRayTubeCurrent]: FOUR_CORNER_SHOW_NAME.MA,
//     [DICOM_TAG_ATTR.WindowCenter]: FOUR_CORNER_SHOW_NAME.WW,
//     [DICOM_TAG_ATTR.WindowWidth]: FOUR_CORNER_SHOW_NAME.WL,
//     [DICOM_TAG_ATTR.SliceThickness]: FOUR_CORNER_SHOW_NAME.SliceThickness,
//     [DICOM_TAG_ATTR.WindowWidth]: FOUR_CORNER_SHOW_NAME.WL,
//     [DICOM_TAG_ATTR.WindowWidth]: FOUR_CORNER_SHOW_NAME.WL,
// }

enum FOUR_CORNER {
  LT = 'lt',
  LB = 'lb',
  RT = 'rt',
  RB = 'rb'
}


type PACK_SOURCE_TYPES = 'dcm4chee' | 'orthanc' | 'official'


export type { PACK_SOURCE_TYPES }
export {
  DICOM_TAG_ATTR,
  FOUR_CORNER_SHOW_NAME,
  FOUR_CORNER,
  Map_Show_Name
}
